package com.xhh.nphm.system.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @description: 公告评论实体类
 * @author: 25387
 * @date: 2022/12/29 14:34
 * @version 1.0
 */
@TableName(value = "afficheComment")
@Data
public class AfficheComment implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
    * 评论id
    */
    @TableId(type = IdType.AUTO)
    private Integer commentId;

    /**
    * 上级评论id
    */
    @TableField(value = "parentCommentId")
    private Integer parentCommentId;

    /**
    * 被评论公告id
    */
    @TableField(value = "afficheId")
    private Integer afficheId;

    /**
     * 评论者id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
    * 是否是楼主(主评论)
    */
    @TableField(value = "isBlogger")
    private Integer isBlogger;

    /**
    * 评论内容
    */
    @TableField(value = "commentContent")
    private String commentContent;

    /**
    * 评论时间
    */
    @TableField(value = "editTime")
    private Date editTime;

    /**
    * 是否删除
    */
    @TableField(value = "isDel")
    private Integer isDel;

    /**
     * 评论人
     */
    @TableField(exist = false)
    private String userName;

    /**
     * 回复人
     */
    @TableField(exist = false)
    private String replyTo;

    /**
     * 子级评论
     */
    @TableField(exist = false)
    private List<AfficheComment> commentList;


}